package com.etiya.entity;

public class Deneme {
	
	String ad="erkan-yildirim";

	public static void main(String[] args) {
		
		Deneme deneme = new Deneme();
		
		Integer attment = deneme.ad.indexOf("-");
		
        System.out.println(attment);
        
        
        System.out.println(deneme.ad.substring(0,5));
    }
}
